<?php

namespace common\entities\myhtsq;

use Yii;

/**
 * This is the model class for table "ztc_action".
 *
 * @property integer $action_package_relation_id
 * @property integer $action_id
 * @property integer $action_package_id
 * @property string $created_on
 * @property string $created_by
 * @property string $modified_on
 * @property string $modified_by
 */
class ActionPackageRelationEntity extends \common\entities\ConfigEntity
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'myscrm_action_package_relation';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['action_id', 'action_package_id'], 'required'],
            [['action_id', 'action_package_id'], 'integer'],
            [['created_on', 'modified_on'], 'safe'],
            [['created_by', 'modified_by'], 'string', 'max' => 50]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'action_package_relation_id' => 'Action Package Relation ID',
            'action_id' => 'Action ID',
            'action_package_id' => 'Action Package ID',
            'created_on' => 'Created On',
            'created_by' => 'Created By',
            'modified_on' => 'Modified On',
            'modified_by' => 'Modified By',
        ];
    }

}
